home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7420 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  36 lines

  1. Path: connix.com!news
  2. From: Scott Hawley <shawley@connix.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help with Code
  5. Date: Fri, 23 Feb 1996 00:14:07 -0800
  6. Organization: SHAWLEY SYSTEMS
  7. Message-ID: <312D774F.6A2D@connix.com>
  8. References: <4gi3l1$kou@news.voicenet.com> <312C746B.50DA@azstarnet.com>
  9. NNTP-Posting-Host: shawley.connix.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. I did the two changes below and it workd fine.
  16.  
  17.  
  18. #include <iostream>                       << Change this
  19. #include <iostream.h>                     <<< to This
  20. void main()
  21. {
  22.         enum Days { Sunday, Monday, Tuesday, Wednesday,
  23. Thursday, Friday, Saturday };
  24.         
  25.         Days DayOff;      << Change this
  26.         int DayOff        << to this
  27.         
  28.         cout << "What day would you like off (0-6)? ";
  29.         cin >> DayOff;
  30.         
  31.         if (DayOff == Sunday || DayOff == Saturday)
  32.                 cout << "\nYou're already off on weekends!\n";
  33.         else
  34.                 cout << "\nOkay, I'll put in the vacation day.\n";
  35. }
  36.